package com.example.samui.case03_16110100414;

import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

public class settingActivity extends AppCompatActivity {

    private TextView tv_s_username;
    private SharedPreferences sp;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting);

        tv_s_username = findViewById(R.id.tv_s_username);

        sp = getSharedPreferences("case03_sp", MODE_PRIVATE);

        tv_s_username.setText(sp.getString("username", null));
    }
}
